package com.jprocms.module.cms.controller.admin.sysword.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 词汇管理 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class SysWordBaseVO {
    public SysWordBaseVO() {
    }

    @Schema(description = "词汇", required = true)
    @NotNull(message = "词汇不能为空")
    private String word;

    @Schema(description = "替换词")
    private String replaceWord;

    @Schema(description = "排序", required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @Schema(description = "搜索次数(或其他)")
    private Long hitCount;

    @Schema(description = "类型", required = true)
    @NotNull(message = "类型不能为空")
    private String dictType;

}
